  public function getCredentials($action)
  {
    if (0 === strpos($action, '_'))
    {
      $action = substr($action, 1);
    }

    return isset($this->configuration['credentials'][$action]) ? $this->configuration['credentials'][$action] : array();
  }

  public function getActionsDefault()
  {
    return <?php echo $this->asPhp(isset($this->config['actions']) ? $this->config['actions'] : array()) ?>;
<?php unset($this->config['actions']) ?>
  }

  public function getFormActions()
  {
    return <?php echo $this->asPhp(isset($this->config['form']['actions']) ? $this->config['form']['actions'] : array('_delete' => null, '_list' => null, '_save' => null, '_save_and_add' => null)) ?>;
<?php unset($this->config['form']['actions']) ?>
  }

  public function getShowActions()
  {
    return <?php echo $this->asPhp(isset($this->config['show']['actions']) ? $this->config['show']['actions'] : array('_delete' => null, '_list' => null)) ?>;
<?php unset($this->config['show']['actions']) ?>
  }

  public function getNewActions()
  {
    return <?php echo $this->asPhp(isset($this->config['new']['actions']) ? $this->config['new']['actions'] : array()) ?>;
<?php unset($this->config['new']['actions']) ?>
  }

  public function getEditActions()
  {
    return <?php echo $this->asPhp(isset($this->config['edit']['actions']) ? $this->config['edit']['actions'] : array()) ?>;
<?php unset($this->config['edit']['actions']) ?>
  }

  public function getListObjectActions()
  {
    return <?php echo $this->asPhp(isset($this->config['list']['object_actions']) ? $this->config['list']['object_actions'] : array('_edit' => null, '_delete' => null, '_show' => null)) ?>;
<?php unset($this->config['list']['object_actions']) ?>
  }

  public function getListActions()
  {
    return <?php echo $this->asPhp(isset($this->config['list']['actions']) ? $this->config['list']['actions'] : array('_new' => null)) ?>;
<?php unset($this->config['list']['actions']) ?>
  }

  public function getListBatchActions()
  {
    return 
    <?php if (isset($this->config['list']['batch_actions'])): ?>
      <?php echo $this->asPhp($this->config['list']['batch_actions']) ?>;
    <?php else: ?>
      <?php $actions = array('_delete' => null) ?>
      <?php if (!(isset($this->config['cart']) && false === $this->config['cart'])): ?>
        <?php $actions['_addToCart'] = array('label' => 'Add to cart') ?>
      <?php endif ?>
      <?php echo $this->asPhp($actions) ?>;
    <?php endif ?>
<?php unset($this->config['list']['batch_actions']) ?>
  }

<?php if (!(isset($this->config['cart']) && false === $this->config['cart'])): ?>
  public function getCartObjectActions()
  {
    return <?php echo $this->asPhp(isset($this->config['cart']['object_actions']) ? $this->config['cart']['object_actions'] : array('_cartDelete' => array('label' => 'Remove from cart'))) ?>;
<?php unset($this->config['cart']['object_actions']) ?>
  }

  public function getCartActions()
  {
    return <?php echo $this->asPhp(isset($this->config['cart']['actions']) ? $this->config['cart']['actions'] : array()) ?>;
<?php unset($this->config['cart']['actions']) ?>
  }

  public function getCartBatchActions()
  {
    return <?php echo $this->asPhp(isset($this->config['cart']['batch_actions']) ? $this->config['cart']['batch_actions'] : array('_deleteFromCart' => array('label' => 'Remove from cart'))) ?>;
<?php unset($this->config['cart']['batch_actions']) ?>
  }
<?php endif ?>
